perf(web-ui): reduce post-interactive workspace and session pressure#1032
Merged
Conversation
966ef58 to
cf0b337
Compare
4af804e to
b0747d4
Compare
c09e19b to
6e078cd
Compare
6e078cd to
8b90809
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates #949. This PR does not close the issue; native startup outliers remain open follow-up work.
Performance Data
Current PR head after P2 safety amend:
8b90809d, basef46113e6. The release-fast performance data below was collected before the review-safety amend on headb0747d4aagainst base8318ab32; the latest amend adds functional safeguards and focused tests, and does not claim a new performance delta. The large-session fixture has 80 turns with markdown, code blocks, tables, tools, and visible latest-turn narrative text.Key End-To-End Results
Historical Session Viewport Quality
Startup Outlier Analysis
This PR should not be read as a startup win. The latest startup run still shows work before the interactive shell:
get_config108.1 ms,remote_get_workspace_info97.5 msRisks And Functional Impact
dialogTurns. This PR protects the main chat viewport, search hydration release, appended-turn merge, and recommendation context turn index, but it does not introduce a global explicit partial-session model.themesconfig read during before-render initialization; built-in and system theme startup paths stay on the bootstrap path.Verification
f46113e6:pnpm --dir src/web-ui run test:run src/infrastructure/theme/core/ThemeService.test.ts src/app/startup/startupPerformanceContract.test.ts: 27 passed.pnpm --dir src/web-ui run test:run src/flow_chat/store/FlowChatStore.test.ts src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx: 44 passed.pnpm --dir src/web-ui run type-check.git diff --check gcwing/main...HEAD.8b90809d:pnpm --dir src/web-ui run test:run src/infrastructure/api/service-api/ApiClient.test.ts src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx: 21 passed.pnpm run type-check:web.git diff --check.pnpm run lint:webpnpm --dir src/web-ui run type-checkpnpm --dir src/web-ui run test:run src/flow_chat/components/modern/VirtualMessageList.layout.test.ts src/flow_chat/components/modern/modelRoundProgressiveRender.test.ts src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx src/flow_chat/store/modernFlowChatStore.test.ts src/flow_chat/store/FlowChatStore.test.ts src/shared/utils/startupTrace.test.ts src/infrastructure/theme/core/ThemeService.test.ts src/app/startup/startupPerformanceContract.test.tspnpm --dir src/web-ui run test:run src/app/components/NavPanel/sections/workspaces/workspaceGitRefreshOptions.test.ts src/infrastructure/api/service-api/ApiClient.test.ts src/infrastructure/api/adapters/tauri-adapter.test.ts src/shared/utils/logger.test.tspnpm --dir src/web-ui run test:run src/flow_chat/store/FlowChatStore.test.ts src/flow_chat/components/modern/ModernFlowChatContainer.history-state.test.tsx src/component-library/components/Markdown/Markdown.test.tsxpnpm run desktop:build:release-fastpnpm run check:repo-hygienecargo test -p bitfun-core load_session_tail_turns -- --nocapturecargo test -p bitfun-core restore_session_view -- --nocapture